using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace SharpErp.UI.BusinessDocument
{
    public partial class CustomInfoForm : Common.BaseDialogForm
    {
        public CustomInfoForm()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void buttonAdd_Click(object sender, EventArgs e)
        {

            if (sender == buttonAdd)
            {
                dataGridViewX1.Rows.Add();
            }
            else if(sender == buttonDelete)
            {
               if(dataGridViewX1.CurrentRow != null) dataGridViewX1.Rows.Remove(dataGridViewX1.CurrentRow);
            }
        }
    }
}